

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>归置组术语解释 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/doctools.js"></script>
        <script src="../../../_static/sphinx_highlight.js"></script>
    
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../../genindex/" />
    <link rel="search" title="Search" href="../../../search/" />
    <link rel="next" title="使用 pg-upmap" href="../upmap/" />
    <link rel="prev" title="归置组状态" href="../pg-states/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../../" class="icon icon-home" aria-label="Home"></a></li>
          <li class="breadcrumb-item"><a href="../../">Ceph 存储集群</a></li>
          <li class="breadcrumb-item"><a href="../">集群运维</a></li>
          <li class="breadcrumb-item"><a href="../placement-groups/">归置组</a></li>
      <li class="breadcrumb-item active">归置组术语解释</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../../_sources/rados/operations/pg-concepts.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../../" class="icon icon-home"> Ceph
          

          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../../start/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephadm/">Cephadm</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../../">Ceph 存储集群</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../../configuration/">配置</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../">运维</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../operating/">操纵集群</a></li>
<li class="toctree-l3"><a class="reference internal" href="../health-checks/">健康检查</a></li>
<li class="toctree-l3"><a class="reference internal" href="../monitoring/">监控集群</a></li>
<li class="toctree-l3"><a class="reference internal" href="../monitoring-osd-pg/">监控 OSD 和归置组</a></li>
<li class="toctree-l3"><a class="reference internal" href="../user-management/">用户管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="../pgcalc/">PG Calc</a></li>
<li class="toctree-l3"><a class="reference internal" href="../data-placement/">数据归置概览</a></li>
<li class="toctree-l3"><a class="reference internal" href="../pools/">存储池</a></li>
<li class="toctree-l3"><a class="reference internal" href="../erasure-code/">纠删码</a></li>
<li class="toctree-l3"><a class="reference internal" href="../cache-tiering/">分级缓存</a></li>
<li class="toctree-l3 current"><a class="reference internal" href="../placement-groups/">归置组</a><ul class="current">
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#pg-autoscaler">自动伸缩归置组</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#pg-num">预定义 pg_num</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id7">归置组的使用</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id8">指定 pg_num 时的相关因素</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#choosing-number-of-placement-groups">确定 PG 数量</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#setting-the-number-of-placement-groups">设置归置组数量</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#rados-ops-pgs-get-pg-num">获取归置组数量</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id15">获取集群的 PG 统计信息</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id16">获取卡住的归置组统计信息</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id17">获取一归置组运行图</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id18">查看一个 PG 的统计信息</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id19">洗刷归置组</a></li>
<li class="toctree-l4"><a class="reference internal" href="../placement-groups/#id20">改变归置组的回填/恢复优先级</a></li>
<li class="toctree-l4 current"><a class="reference internal" href="../placement-groups/#rados">恢复丢失的 RADOS 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../upmap/">使用 pg-upmap</a></li>
<li class="toctree-l3"><a class="reference internal" href="../read-balancer/">Operating the Read (Primary) Balancer</a></li>
<li class="toctree-l3"><a class="reference internal" href="../balancer/">均衡器模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="../crush-map/">CRUSH 图</a></li>
<li class="toctree-l3"><a class="reference internal" href="../crush-map-edits/">手动编辑一个 CRUSH 图</a></li>
<li class="toctree-l3"><a class="reference internal" href="../stretch-mode/">Stretch Clusters</a></li>
<li class="toctree-l3"><a class="reference internal" href="../change-mon-elections/">Configuring Monitor Election Strategies</a></li>
<li class="toctree-l3"><a class="reference internal" href="../add-or-rm-osds/">增加/删除 OSD</a></li>
<li class="toctree-l3"><a class="reference internal" href="../add-or-rm-mons/">增加/删除监视器</a></li>
<li class="toctree-l3"><a class="reference internal" href="../devices/">设备管理</a></li>
<li class="toctree-l3"><a class="reference internal" href="../bluestore-migration/">迁移到 BlueStore</a></li>
<li class="toctree-l3"><a class="reference internal" href="../control/">命令参考</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/community/">Ceph 社区</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/troubleshooting-mon/">监视器故障排除</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/troubleshooting-osd/">OSD 故障排除</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/troubleshooting-pg/">归置组排障</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/log-and-debug/">日志记录和调试</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/cpu-profiling/">CPU 剖析</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../troubleshooting/memory-profiling/">内存剖析</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../man/">    手册页</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../troubleshooting/">故障排除</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../api/">APIs</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../monitoring/">监控概览</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../hardware-monitoring/">硬件监控</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <section id="rados-operations-pg-concepts">
<span id="id1"></span><h1>归置组术语解释<a class="headerlink" href="#rados-operations-pg-concepts" title="Permalink to this heading"></a></h1>
<p>当你执行诸如 <code class="docutils literal notranslate"><span class="pre">ceph</span> <span class="pre">-w</span></code> 、 <code class="docutils literal notranslate"><span class="pre">ceph</span> <span class="pre">osd</span> <span class="pre">dump</span></code> 、
及其他和归置组相关的命令时， Ceph 会返回下列术语及其值：</p>
<dl class="simple">
<dt><em>Peering</em></dt><dd><p>（建立互联）
是一种过程，它使得存储着同一归置组的所有 OSD
对归置组内的所有对象及其元数据统一意见。
需要注意的是，达成一致不意味着它们都有最新内容。</p>
</dd>
<dt><em>Acting Set</em></dt><dd><p>（在任集合）
一列有序 OSD ，它们为某一特定归置组（或其中一些元版本）负责。</p>
</dd>
<dt><em>Up Set</em></dt><dd><p>（当选集合）
［译者：此处原文没看透……瞎译如下］
一系列有序 OSD ，它们依据 CRUSH 算法为某一归置组的特定元版本负责。
它通常和 <em>Acting Set</em> 相同，除非 <em>Acting Set</em> 被
OSD 运行图里的 <code class="docutils literal notranslate"><span class="pre">pg_temp</span></code> 显式地覆盖掉了。</p>
</dd>
<dt><em>Current Interval</em> 或 <em>Past Interval</em></dt><dd><p>某一特定归置组所在 <em>Acting Set</em> 和 <em>Up Set</em> 未更改时的一系列 OSD 运行图元版本。</p>
</dd>
<dt><em>Primary</em></dt><dd><p>（主 OSD ）
<em>Acting Set</em> 的成员（按惯例第一个），它负责协调互联，
并且是归置组内惟一接受客户端初始写入的 OSD 。</p>
</dd>
<dt><em>Replica</em></dt><dd><p>（副本 OSD ）
一归置组的 <em>Acting Set</em> 内不是主 OSD 的其它 OSD ，
它们被同等对待、并由主 OSD <em>激活</em>。</p>
</dd>
<dt><em>Stray</em></dt><dd><p>（彷徨 OSD ）
某一 OSD ，它不再是当前 <em>Acting Set</em> 的成员，
但还没被告知它可以删除那个归置组副本。</p>
</dd>
<dt><em>Recovery</em></dt><dd><p>（恢复）
确保 <em>Acting Set</em> 内、一归置组中的所有对象的副本都存在于所有 OSD 上。
一旦<em>互联</em>完成，<em>主 OSD</em> 就以接受写操作，
且<em>恢复</em>进程可在后台进行。</p>
</dd>
<dt><em>PG Info</em></dt><dd><p>（归置组信息）
［译者：此处原文没看透……瞎译如下］
基本元数据，关于归置组创建元版本、向归置组的最新写版本、最近的开始元版本（ <em>last epoch started</em> ）、最近的干净元版本（ <em>last epoch clean</em> ）、和当前间隔（ <em>current interval</em> ）的起点。 OSD 间关于归置组的任何通讯都包含 PG Info ，这样任何知道一归置组存在（或曾经存在）的 OSD 也必定有 <em>last epoch clean</em> 或 <em>last epoch started</em> 的下限。</p>
</dd>
<dt><em>PG Log</em></dt><dd><p>（归置组日志）
一归置组内对象的一系列最近更新。注意，这些日志在 <em>Acting Set</em> 内的所有 OSD 确认更新到某点后可以删除。</p>
</dd>
<dt><em>Missing Set</em></dt><dd><p>（缺失集合）
各 OSD 都记录更新日志，而且如果它们包含对象内容的更新，会把那个对象加入一个待更新列表，这个列表叫做那个 <code class="docutils literal notranslate"><span class="pre">&lt;OSD,PG&gt;</span></code> 的 <em>Missing Set</em> 。</p>
</dd>
<dt><em>Authoritative History</em></dt><dd><p>（权威历史）
一个完整、完全有序的操作集合，如果再次执行，
可把一 OSD 上的归置组副本还原到最新。</p>
</dd>
<dt><em>Epoch</em></dt><dd><p>（元版本）
单递增 OSD 运行图版本号。</p>
</dd>
<dt><em>Last Epoch Start</em></dt><dd><p>（起始的最新元版本）
一最新元版本，在这点上，一归置组所对应 <em>Acting Set</em> 内的所有节点都对<em>权威历史</em>达成了一致、并且<em>互联</em>被认为成功了。</p>
</dd>
<dt><em>up_thru</em></dt><dd><p>（领导拍板）
<em>主 OSD</em> 要想成功完成<em>互联</em>，它必须通过当前 OSD 图<em>元版本</em>通知一个监视器，
让此监视器在 osd 图中设置其 <em>up_thru</em> 。
这会使<em>互联</em>进程忽略之前的 <em>Acting Set</em> ，
因为它经历特定顺序的失败后一直不能<em>互联</em>，
比如像下面的第二周期：</p>
<ul class="simple">
<li><p><em>acting set</em> = [A,B]</p></li>
<li><p><em>acting set</em> = [A]</p></li>
<li><p><em>acting set</em> = [] 之后很短时间（例如同时失败、但探测是交叉的）</p></li>
<li><p><em>acting set</em> = [B] （ B 重启了、但 A 没有）</p></li>
</ul>
</dd>
<dt><em>Last Epoch Clean</em></dt><dd><p>（洁净的最新元版本）
最近的 <em>Epoch</em> ，这时某一特定归置组所在 <em>Acting Set</em> 内的所有节点都全部更新了（包括归置组日志和对象内容）。
在这点上，<em>恢复</em>被认为已完成。</p>
</dd>
</dl>
</section>



<div id="support-the-ceph-foundation" class="admonition note">
  <p class="first admonition-title">Brought to you by the Ceph Foundation</p>
  <p class="last">The Ceph Documentation is a community resource funded and hosted by the non-profit <a href="https://ceph.io/en/foundation/">Ceph Foundation</a>. If you would like to support this and our other efforts, please consider <a href="https://ceph.io/en/foundation/join/">joining now</a>.</p>
</div>


           </div>
           
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="../pg-states/" class="btn btn-neutral float-left" title="归置组状态" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="../upmap/" class="btn btn-neutral float-right" title="使用 pg-upmap" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).</p>
  </div>

   

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>